package com.xt.cloud.kettle.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
/**
 * @author lj
 * @title: WebMvcConfigurerAdapter
 * @projectName citymanagementplatform
 * @description: TODO
 * @date 2022/4/1 000114:52
 */
@Configuration
public class CustomwebMvcConfigurer extends WebMvcConfigurerAdapter {
    // 如果继承了WebMvcConfigurationSupport,会覆盖访问静态资源的配置，无法访问静态资源，必须继承WebMvcConfigurerAdapter
    @Override
    public void configurePathMatch(PathMatchConfigurer pathMatchConfigurer) {
        //是否是后缀模式匹配,如果是true,请求download.* 可以映射到download
        pathMatchConfigurer.setUseSuffixPatternMatch(true);
    }

}